package com.rp.system.user.mapper;

import com.rp.system.user.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Set;

/**
 * <p>
 * 角色表 mapper 接口
 * </p>
 *
 * @author vicente
 * @since 2020-11-23
 */
@Component
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    Set<SysRole> findRolesByUserId(@Param("uid") String uid);

}
